#include"Header.h"
#include"Header1.h"
#include"Header2.h"
int main(){
	Rectangle rect;
	Triangle trgl;
	Polygon*ppoly1 = &rect;
	Polygon*ppoly2 = &trgl;
	ppoly1->setValues(4, 5);
	ppoly2->setValues(4, 5);
	cout << ppoly1->area() << endl;
	cout << ppoly2->area() << endl;
	system("pause");
	return 0;
}